Skip to content

Conversation

@seebees
Copy link
Contributor

@seebees seebees commented Mar 10, 2025

null and .isPresent() of empty are not the same.

The AWS SKD has a specific way it handles these cases, and we are not adjusting that.

This converts java null => None, and [] => Some([]).

This means that for smithy-dafny
Java <=> Dafny conversions are lossless.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

seebees added 2 commits March 10, 2025 15:11
`null` and `.isPresent()` of empty are not the same.

The AWS SKD has a specific way it handles these cases,
and we are not adjusting that.

This converts java `null` => `None`, and `[]` => `Some([])`.

This means that for smithy-dafny
Java <=> Dafny conversions are lossless.
@seebees seebees requested a review from a team as a code owner March 10, 2025 22:28
@seebees
Copy link
Contributor Author

seebees commented Mar 13, 2025

Copy link
Contributor

@ajewellamz ajewellamz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants